<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>商品列表</title>
<link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
    <script src="{{asset('admin_style/js/jquery.js')}}"></script>
    <script src="{{asset('admin_style/js/pintuer.js')}}"></script>
<link rel="stylesheet" href="{{asset('admin_style/css/style.css')}}">
<!--<link rel="stylesheet" href="css/ace.min.css">-->
<script src="{{asset('admin_style/js/layer/layer.js')}}"></script>
</head>
<body>
<form method="post" action="" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 虚拟商品列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
			    <div class="border-b border-bno clearfix">
			      <a href="add-product.html" class="button bg-yellow button-small"><span class="icon-plus"></span>添加新商品</a>
			     </div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <!--<li> <a class="button border-main icon-plus-square-o" href="add.html"> 发布文章</a> </li>-->
        <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:150px; line-height:17px;" onchange="changesearch()">
              <option value="">所有分类</option>
              <option value="">衣服</option>
              <option value="">食品</option>
              <option value="">电子</option>
              <option value="">旅游</option>
            </select>
          </li>
        </if>
       <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:100px; line-height:17px;" onchange="changesearch()">
              <option value="">所有品牌</option>
              <option value="">自营品牌</option>
              <option value="">商家品牌</option>
            </select>
          </li>
        </if>
        <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:100px; line-height:17px;" onchange="changesearch()">
              <option value="">精品</option>
              <option value="">特价</option>
              <option value="">热销</option>
            </select>
          </li>
        </if>
        <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:100px; line-height:17px;" onchange="changesearch()">
              <option value="">全部</option>
              <option value="">供货商</option>
              <option value="">供货商</option>
            </select>
          </li>
        </if>
        <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:100px; line-height:17px;" onchange="changesearch()">
              <option value="">全部</option>
              <option value="">上架</option>
              <option value="">下架</option>
            </select>
          </li>
        </if>
        <if condition="$iscid eq 1">
          <li>
            <select name="cid" class="input" style="width:100px; line-height:17px;" onchange="changesearch()">
              <option value="">全部</option>
              <option value="">审核</option>
              <option value="">未审核</option>
            </select>
          </li>
        </if>
        <li>
          <input type="text" placeholder=""  class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 查询</a></li>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">编号</th>
        <th>产品名称</th>
        <th>商家名称</th>
        <th>货号</th>
        <th>上架</th>
        <th>精品</th>
        <th>新品</th>
        <th>热销</th>
        <th>审核状态</th>
        <th width="310">操作</th>
      </tr>
      <volist name="list" id="vo">
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="" />
           111111</td>
          <td>香蕉牛奶暗牧系酸奶五谷道场汤达人奥利奥北京小面</td>
          <td>ZARA旗舰店</td>
          <td>ESC20101010</td>
          <td>是</td>
          <td>是</td>
          <td>否</td>
          <td>否</td>
          <td>无需审核</td>
          <td><div class="button-group"><a class="button border-yellow" href="add-product.html"><span class="icon-edit (alias)"></span>编辑</a><a class="button border-main" href=""><span class="icon-eye"></span> 查看</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
        
      <tr>
        <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
          全选 </td>
        <td colspan="10" style="text-align:left;padding-left:20px;"><a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 批量删除</a> 
      </tr>
      <tr>
        <td colspan="8"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>
      </tr>
    </table>
  </div>
</form>

<script type="text/javascript">

//搜索
function changesearch(){	
		
}

//单个删除
function del(id,mid,iscid){
	if(confirm("您确定要删除吗?")){
		
	}
}

//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})

//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;		
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}

</script>
</body>
</html>
